package com.ruoyi.omsampuser.service;

import java.util.HashMap;
import java.util.List;
import com.ruoyi.omsampuser.domain.OmSampuser;

/**
 * 用户文章连接Service接口
 * 
 * @author ruoyi
 * @date 2025-02-24
 */
public interface IOmSampuserService 
{
    /**
     * 查询用户文章连接
     * 
     * @param sampuserId 用户文章连接主键
     * @return 用户文章连接
     */
    public OmSampuser selectOmSampuserBySampuserId(Long sampuserId);

    /**
     * 查询用户文章连接列表
     * 
     * @param omSampuser 用户文章连接
     * @return 用户文章连接集合
     */
    public List<OmSampuser> selectOmSampuserList(OmSampuser omSampuser);

    /**
     * 新增用户文章连接
     * 
     * @param omSampuser 用户文章连接
     * @return 结果
     */
    public int insertOmSampuser(OmSampuser omSampuser);

    /**
     * 修改用户文章连接
     * 
     * @param omSampuser 用户文章连接
     * @return 结果
     */
    public int updateOmSampuser(OmSampuser omSampuser);

    /**
     * 批量删除用户文章连接
     * 
     * @param sampuserIds 需要删除的用户文章连接主键集合
     * @return 结果
     */
    public int deleteOmSampuserBySampuserIds(Long[] sampuserIds);

    /**
     * 删除用户文章连接信息
     * 
     * @param sampuserId 用户文章连接主键
     * @return 结果
     */
    public int deleteOmSampuserBySampuserId(Long sampuserId);

    OmSampuser getCheckInfo(Long saId, String openId);

    HashMap<String,Object> getCheckInfoMap(Long saId, String openId);

    int uncollect(OmSampuser omSampuser);
}
